import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../services/http-client.service';
@Injectable()
export class DictionaryControlService {

	constructor(
		public httpClient: HttpClientService
	) { }
	//字典值分页列表
	getDictionaryVal(getBody){
		return this.httpClient.get('/pms/v1/common/dict/listDictionarys', getBody);
	}
	/**
	 * 新增字典数据
	 */
	addDictionary(postBody){
        return this.httpClient.post('/pms/v1/common/dict/dictionary',postBody);
	}
	/**
	 * 编辑字典数据
	 */
	editDictionary(putBody){
        return this.httpClient.put('/pms/v1/common/dict/dictionary',putBody);
	}
	/**
	 * 删除单个字典数据
	 * @param sDictNo 
	 */
	delDictionary(sDictNo){
		return this.httpClient.put('/pms/v1/common/dict/dictionary/'+sDictNo);
	}
}
